﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel.DataAnnotations;

namespace SimpleBlog.Models
{
    public class Configuration
    {
        public Configuration()
        {
            TextArea = false;
        }

        [Key]
        [Required(AllowEmptyStrings = false)]
        public string ConfigKey { get; set; }

        [Required(AllowEmptyStrings = true)]
        public string ConfigValue { get; set; }

        [Required]
        public bool TextArea { get; set; }
    }
}
